﻿namespace WGT
{
    public class pos
    {
        public int h;
        public int w;
        public int x;
        public int y;

        public override bool Equals(object ob)
        {
            var o = (pos) ob;
            return o != null && x == o.x && y == o.y && w == o.w && h == o.h;
        }

        public override string ToString()
        {
            return string.Format("[{0}{1}{2}{3}]", x, y, w, h);
        }
    }
}